//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<ILiveControl.h>
///	@path	~/src/scene/
///	@date	2007/11/05
///	@desc	Live control interface.

#pragma once

#include "xeres.h"

#include "scene/ILive.h"

namespace xeres {

	/*!
		\class	ILiveControl
		\brief	Live control, for controlling live actions.
	*/
	class ILiveControl : public IObject
	{
	public:

		/// \ctor
		ILiveControl( void );

		/// \dtor
		virtual ~ILiveControl( void );

		DECL_IOBJECT_INTERFACE( ILiveControl , IObject );

	public:

		// interface

		/*!
			\brief		Call when control attached a live object.
		*/
		virtual void OnAttach( ILive * live ) = 0;

		/*!
			\brief		Call when control detached a live object.
		*/
		virtual void OnDetach( ILive * live ) = 0;

		/*!
			\brief		Tick update control.
		*/
		virtual void Tick( const Frame& frame ) = 0;
	};

} // namespace xeres
